package com.chatplus.application.processor.handler.dto;

import cn.hutool.json.JSONUtil;

import java.io.Serializable;

/**
 * Chat回复消息体
 */
public class ReplyChatMessage implements Serializable {
    /**
     * 消息类型 分为：start、middle、end
     */
    private String type;
    /**
     * 消息内容
     */
    private String content;

    public ReplyChatMessage() {
    }

    public ReplyChatMessage(String type, String content) {
        this.type = type;
        this.content = content;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public byte[] toByte() {
        return JSONUtil.toJsonStr(this).getBytes();
    }
}
